﻿<UserControl x:Class="PocketBook.Views.Designs.CoverPageView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    mc:Ignorable="d" 
    d:DesignHeight="600" d:DesignWidth="500" >
    <Grid SnapsToDevicePixels="true" VerticalAlignment="Stretch" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <FlowDocumentScrollViewer ScrollViewer.VerticalScrollBarVisibility="Hidden">
            <FlowDocument>
                <Table>
                </Table>
                <Paragraph BorderThickness="0,0,0,1.5" BorderBrush="Black">Pocket Book</Paragraph>
                <Section FontFamily="Georgia">
                    <Paragraph FontSize="14" >
                        The Pocket Book is a small book with guides on each page. These guides, combined with a unique folding style, enable a normal piece of paper to become the ultimate note card!
                    </Paragraph>
                </Section>
            </FlowDocument>
        </FlowDocumentScrollViewer>

        <FlowDocumentScrollViewer Grid.Row="2" ScrollViewer.VerticalScrollBarVisibility="Hidden" VerticalAlignment="Bottom">
            <FlowDocument>
                <Section FontFamily="Trebuchet MS">
                    <Paragraph Padding="3" FontSize="12" FontWeight="Bold" Background="Lightgray">If found, please return to:</Paragraph>
                    <Section FontSize="10" >
                        <Section.Resources>
                            <Style TargetType="Paragraph">
                                <Setter Property="BorderThickness">
                                    <Setter.Value>
                                        <Thickness Bottom="1" />
                                    </Setter.Value>
                                </Setter>
                                <Setter Property="BorderBrush" Value="Gray" />
                            </Style>
                        </Section.Resources>
                        <Paragraph>Name:
                            <Run Text="{Binding Path=Settings.Name, Mode=OneWay}"/></Paragraph>
                        <Paragraph>Address:
                            <Run Text="{Binding Path=Settings.Address, Mode=OneWay}"/>
                        </Paragraph>
                        <Table >
                            <TableRowGroup>
                                <TableRow>
                                    <TableCell>
                                        <Paragraph>City:
                                            <Run Text="{Binding Path=Settings.City, Mode=OneWay}"/>
                                        </Paragraph>
                                    </TableCell>
                                    <TableCell>
                                        <Paragraph>State:
                                            <Run Text="{Binding Path=Settings.State, Mode=OneWay}"/>
                                        </Paragraph>
                                    </TableCell>
                                    <TableCell>
                                        <Paragraph>Postcode:
                                            <Run Text="{Binding Path=Settings.PostCode, Mode=OneWay}"/>
                                        </Paragraph>
                                    </TableCell>
                                </TableRow>
                            </TableRowGroup>
                        </Table>
                        <Paragraph>Phone:
                            <Run Text="{Binding Path=Settings.Telephone, Mode=OneWay}"/></Paragraph>
                        <Paragraph>Email:
                            <Run Text="{Binding Path=Settings.EmailAddress, Mode=OneWay}"/></Paragraph>
                    </Section>
                </Section>
            </FlowDocument>
        </FlowDocumentScrollViewer>
    </Grid>
</UserControl>
